<template>
  <div class="login">
    <!-- 整个表单 -->
    <el-form  class="login-form" autocomplete="on" label-position="left">
      <!-- 登录 -->
      <div class="title-container">
        <h3 class="title"> 登 录 </h3>
      </div>
      <!-- input框 -->
            <!-- 用户登录 -->
      <el-form-item prop="username">
        <span class="svg-container">
          <!-- <svg-icon icon-class="user" />  图标-->11
        </span>
        <el-input
          placeholder="Username"
          name="username"
          type="text"
          tabindex="1"
          autocomplete="on"
        />
      </el-form-item>
        <!--Tooltip放上去有文字提示-->
      <el-tooltip content="Caps lock is On" placement="right" manual>
        <!-- 用户密码 -->
        <el-form-item prop="password">
          <span class="svg-container">
            <!-- <svg-icon icon-class="password" />
            tubiao -->22
          </span>
          <el-input
            placeholder="Password"
            name="password"
            tabindex="2"
          />
          <span class="show-pwd">
            <!-- <svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" /> -->
          </span>
        </el-form-item>
      </el-tooltip>
          <!-- 登录按钮 -->
      <el-button type="primary" style="width:100%;margin-bottom:50px;">
        Login
      </el-button>

      <div style="position:relative">
        <el-button class="thirdparty-button" type="primary">
          微信、QQ登录
        </el-button>
      </div>
    </el-form>
  </div>
</template>

<script>
export default {
}
</script>

<style lang="scss">
/* 修复input 背景不协调 和光标变色 或者用深度选择器deep*/
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */

$bg:#283443;
$light_gray:#fff;
$cursor: #fff;
/* reset element-ui css */
.login {
  .el-input {
    display: inline-block;
    height: 50px;
    width: 85%;

    input {
      background: transparent;
      border: 0px;
      -webkit-appearance: none;
      border-radius: 0px;
      padding: 12px 5px 12px 15px;
      color: $light_gray;
      height: 47px;
      caret-color: $cursor;

      &:-webkit-autofill {
        box-shadow: 0 0 0px 1000px $bg inset !important;
        -webkit-text-fill-color: $cursor !important;
      }
    }
  }

  .el-form-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: #454545;
  }
}
</style>

<style lang='scss' scoped>
$bg:#283443;
  .login {
    width: 100vw;
    height: 100vh;
    background-color: $bg;
    overflow: hidden;
    $bg:#2d3a4b;
$dark_gray:#889aa4;
$light_gray:#eee;
  .login-form {
    position: relative;
    width: 520px;
    max-width: 100%;
    padding: 160px 35px 0;
    margin: 0 auto;
    overflow: hidden;
  }
  .svg-container {
    padding: 6px 5px 6px 15px;
    color: $dark_gray;
    vertical-align: middle;
    width: 30px;
    display: inline-block;
  }

  .title-container {
    position: relative;

    .title {
      font-size: 26px;
      color: $light_gray;
      margin: 0px auto 40px auto;
      text-align: center;
      font-weight: bold;
    }
  }

  .show-pwd {
    position: absolute;
    right: 10px;
    top: 7px;
    font-size: 16px;
    color: $dark_gray;
    cursor: pointer;
    user-select: none;
  }
  .thirdparty-button{
    position: absolute;
    right: 0;
    // left: 0;
    bottom:0px;
   border-radius: 10px;
  }
  }
</style>
